package org.example.repository.condition;


import org.example.repository.Condition;

public class UnaryConjectionCondition extends Condition {

    private final String type;
    private final Condition condition;

    public UnaryConjectionCondition(String type, Condition condition) {
        this.type = type;
        this.condition = condition;
    }

    public String getType() {
        return type;
    }

    public Condition getCondition() {
        return condition;
    }

    @Override
    public String toString() {
        return "UnaryConjectionCondition{" +
                "op='" + type + '\'' +
                ", condition=" + condition +
                '}';
    }
}
